function loading(fun){
	var index = layer.load({offset:"45%"});
	setTimeout(function(){
	  layer.closeAll('loading');
	  $("#content_main").show();
	  if(typeof(fun) == 'function'){
	  	 fun();
	  	 $(window).trigger('resize');
	  }
	}, 1000);	
}
function manageTbale(){
	var table = document.getElementsByTagName('table')[0];
	var width = $('.jason-table').width();
	var height  = $('.jason-table').height();
	var w_height = $(window).height();
	var header_height = $('#content-header').outerHeight();
	var footer_height = $('#content-footer').outerHeight();
	$("#card-list-panle").css({'overflow' : 'auto','height':w_height - header_height - footer_height - 2});
	if(width <= $("#card-list-panle").width()){
		if(height > $("#card-list-panle").height()){
			$('.jason-table').parent('div').css('width' , $("#card-list-panle").width() - 17);
		}else{
			$('.jason-table').parent('div').css('width' , $("#card-list-panle").width());
		}
		$('.jason-table').css('width' , '100%');
	}else{
		$('.jason-table').parent('div').css('width' , width);
		$('.jason-table').css('width' , '100%');
	}
	
}
